<?php
	class nick {
	
		private $irc;
		private $nick;	

		public function __construct($nick,$rIRC)
		{
			$this->nick = $nick;
			$this->irc = $rIRC;
		}
	
		public function setIrcNick()
		{
			$this->isMe = true;
			$this->irc->sendRaw('NICK '.$this->nick);
		}

		public function sendPM($msg)
		{
			$this->irc->sendRaw('PRIVMSG '.$this->nick.' '.$msg);
		}
	
		public function sendNotice($msg)
		{
			   $this->irc->sendRaw('NOTICE '.$this->nick.' '.$msg);
		}

		public static function unsetMe()
		{
			//this function goes through all instances of the class and unsets isMe - make sure it applies only for the relevent IRC connection
		}
	}
?>
